package com.cx.mall.api.search;

import com.cx.mall.common.model.search.SkuEs;
import com.cx.mall.common.utils.ResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "skuEs",name = "mall-search-service")
public interface SkuEsFeign {
    @PostMapping("/search/skuEs/save")
    ResponseVO save(@RequestBody SkuEs skuEs) ;
    @DeleteMapping("/search/skuEs/delete/{id}")
    ResponseVO delete(@PathVariable("id") String id) ;
}
